package com.hushao.lims.weblims.service;

import com.hushao.lims.weblims.domain.ConsumableInfo;

import java.math.BigDecimal;

/**
 * @author 930588706
 * @date 18/1/18
 * 耗材
 */
public interface ConsumableService {

    /**
     * 根据耗材名称，规格，价格查询对应的耗材
     * @param consumableName
     * @param consumableSpecifications
     * @param consumablePrice
     * @throws Exception
     * @return
     */
    ConsumableInfo findByConsumableNameAndConsumableSpecificationsAndConsumablePrice(String consumableName, String consumableSpecifications, BigDecimal consumablePrice) throws Exception;

    /**
     * 添加耗材信息
     * @return
     */
    ConsumableInfo save(ConsumableInfo consumableInfo) throws Exception;

    ConsumableInfo findOne(Long consumableId);
}
